package day2.HomeWork;

public class Circle extends Shape{
    private double r;

    public Circle() {
    }

    public Circle(String color, double r) {
        super(color);
        this.r = r;
    }

    @Override
    public double area() {
        return Math.PI*r*r;
    }
}
